package Com.Ring.TradingMobile.Lib;

public enum OrderStatus_Code {
    OTHER(-1),
	PROCESS_WAITING (1),
	MATCH_WAITING(2),
	ORDER_REJECTED(3),  //rejected
	ORDER_CANCELLED(4), //cancelled
	FULL_MATCHED(5),
	ORDER_ERROR(6);
    
    public int Value;
    OrderStatus_Code(int p){
    	Value = p;
    }
    
    static OrderStatus_Code intToEnumCode(int values) {
    	for(OrderStatus_Code code: OrderStatus_Code.values()) {
    		if(code.Value==values)
    			return code;
    	}
    	return null;
    }
}